package com.terren.statistic.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.statistic.db.basic.BasicServiceSupportImpl;
import com.terren.statistic.db.entity.CustomizedStat;
import com.terren.statistic.db.entity.EventTopicKeyword;
import com.terren.statistic.db.service.CustomizedStatService;



@Service("customizedStatService")
public class CustomizedStatServiceImpl extends BasicServiceSupportImpl implements CustomizedStatService{
	
	private final String SQL_MAPPER = "customizedStatMapper.";

	@Override
	public void saveCustomizedStats(List<CustomizedStat> items) throws Exception {
		basicDao.save(SQL_MAPPER+"saveCustomizedStats", items);
	}

	@Override
	public List<CustomizedStat> getKeywordPorStatis(EventTopicKeyword param) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getKeywordPorStatis", param);
	}

	@Override
	public List<CustomizedStat> getKeywordOffStatis(EventTopicKeyword param) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getKeywordOffStatis", param);
	}

	@Override
	public List<CustomizedStat> getKeywordStatis(EventTopicKeyword param) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getKeywordStatis", param);
	}

}